package net.sx.minemodule.mvp.item;

import com.kedll.library.mvp.BaseItem;

import net.sx.minemodule.R;
import net.sx.minemodule.mvp.bean.TestCardBean;

/**
 * @author 11470
 */
public class TestCardItem extends BaseItem<TestCardBean> {

    public TestCardItem(TestCardBean data) {
        super(data);
    }

    @Override
    public int getLayout() {
        return R.layout.mine_item_card_package;
    }

    public String cardType() {
        switch (getData().getCardType()) {
            case 1:
                return "储蓄卡";
            case 2:
                return "信用卡";
            default:
                return "";
        }
    }

    public String getCardPath() {
        return getData().getCardPath();
    }

    public String getCardName() {
        return getData().getCardName();
    }


    public String getCardEndNum() {
        return getData().getCardEndNum();
    }


}
